﻿@model PP.Models.CmsItem
@{
    AjaxOptions options = new AjaxOptions{
        HttpMethod = "Post",
        UpdateTargetId = "divContent"
    };        
}


@using (Ajax.BeginForm(options))
{ 
    <div>
       @* @Ajax.ActionLink("Save", "Edit", new { id = Model.Id }, new AjaxOptions { UpdateTargetId = "divContent" })
        @Ajax.ActionLink("Cancel", "Edit", new { id = Model.Id }, new AjaxOptions { UpdateTargetId = "divContent" })*@
        <input type="submit" value="Save" />
        <input type="submit" value="Cancel" />
    </div>

	@Html.EditorFor(m => m.Text)
    @Html.HiddenFor(m => m.Id)
    @Html.HiddenFor(m => m.Slug)

	<script type="text/javascript">
		$("#Text").cleditor();
	</script>
}